#include "Bullet.h"

Bullet::Bullet(float px, float py, int cw, int ch, SDL_Surface *image, int r, int f)
{
	sprite = ASprite(px, py, cw, ch, image, r, f);
}

void Bullet::Update(Uint32 dticks)
{
	sprite.update(dticks);

	sprite.x += sprite.dx * (dticks/1000.f);
	sprite.y += sprite.dy * (dticks/1000.f);
}

void Bullet::setSpeeds(float dx, float dy)
{
	sprite.dx = dx;
	sprite.dy = dy;
}
